<?php
// +----------------------------------------------------------------------
// | KITEGO-Admin「开箱即用」「人人全栈」
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2024 https://www.kitego.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed KITEGO并不是自由软件，未经许可不能去掉KITEGO相关版权
// +----------------------------------------------------------------------
// | Author: KITEGO Team <bd@kitego.cn>
// +----------------------------------------------------------------------

namespace kitego\base;

use app\dao\BaseDao;

/**
 * @method BaseDao find(array|int|string $id, ?array $field = [], ?array $with = []) 查找数据
 * @method BaseDao save(array $data) 保存数据
 * @method BaseDao update(mixed $id, array $data, ?string $key = null) 更新数据
 */
class BaseService
{
    protected BaseDao $dao;

    public function __call($name, $arguments)
    {
        return call_user_func_array([$this->dao, $name], $arguments);
    }
}